<%@ page language="java" import="java.util.*,com.ncp.model.entity.article.*,com.ncp.model.biz.article.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ArrayList<ArticleBean> al1=new ArticleManager().getAllArticles("knowledge");
ArrayList<ArticleBean> al2=new ArticleManager().getAllArticles("scenery");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  </head>
  <body>
   
	<%
   for(int i=0;i<al1.size();i++){
   		ArticleBean ab=al1.get(i);
   	%>
   	<a class="list_news" href="NewsClServlet?type=content&id=<%=ab.getId()%>"><%=i+1 %>:<%=ab.getTitle() %></a>
   	<a href="ArticleClServlet?type=del&id=<%=ab.getId()%>">&nbsp;&nbsp;&nbsp;删除</a>
   	<br/>
   	<%
   }
   %>
   
   
   <%
   for(int i=0;i<al2.size();i++){
   		ArticleBean ab=al2.get(i);
   	%>
   	<a class="list_news" href="NewsClServlet?type=content&id=<%=ab.getId()%>"><%=i+1 %>:<%=ab.getTitle() %></a>
   	<a href="ArticleClServlet?type=del&id=<%=ab.getId()%>">&nbsp;&nbsp;&nbsp;删除</a>
   	<br/>
   	<%
   }
   %>
			
  </body>
</html>
